package com.gzist.elderlyserviceplatform.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gzist.elderlyserviceplatform.common.base.BaseDO;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 评论信息表
 */
@Data
@TableName("comment")
@Schema(description = "评论信息表")
public class Comment extends BaseDO {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "评论人 ID，关联 user 表的 id")
    private String userId;

    @Schema(description = "父级 ID")
    private String parentId;

    @Schema(description = "根节点 ID")
    private String rootId;

    @Schema(description = "模块，如 activity、info_news 等")
    private String module;

    @Schema(description = "审核状态(待审核，已通过，未通过)")
    private String status;

}
